 <div class="content-inner">
        <div class="marg20-btm">
            <a href=<?php echo site_url('backend_pages/allItem'); ?> class="btn btn-primary">&hearts; View Advertisings </a>
        </div>
        <form action=<?php echo site_url('backend_pages/add_news_control'); ?> method="post" class="form-horizontal" enctype="multipart/form-data" />
        <?php
        echo validation_errors();
        $news_title = array(
            'name' => 'news_title',
            'placeholder' => ' Title of news.....',
            'class' => 'input-xlarge',
            'id' => 'input01',
			'value' => set_value('new_title'),
			'required' => ''
        );
        
        $news_upload = array(
            'name' => 'userfile',
            'class' => 'input-xlarge',
            'id' => 'input01',  
            'type' => 'file',
			'required' => ''
        );
        $news_sub = array(
            'name' => 'btn_upload_adver',
            'class' => 'btn btn-primary',
            'id' => 'input01',
            'type' => 'submit',
            'value' => 'Add Now'
        );
        
		$news_statu = array(
            '1' => 'Publish',
            '0' => 'Unpublish'
        );
		
        ?>

        <div class="control-group" class="form-horizontal">

            <br />
            <label class="control-label" for="input01">News Title </label>
            <div class="controls">
                <?php echo form_input($news_title); ?>
            </div>
        </div>


		<div class="control-group">
            <label class="control-label" for="input01">Status </label>
            <div class="controls">
                <?php echo form_dropdown('news_statu', $news_statu); ?>
            </div>
        </div>
        <div class="control-group">
			<label class="control-label" for="input01">Description </label>
			<div class="controls">
				<textarea cols="24" rows="5" name="news_text" required></textarea>
			</div>
		</div>
        <div class="control-group">
            <label class="control-label" for="fileInput">Image News</label>
            <div class="controls">
                <?php echo form_input($news_upload); ?>
            </div>
        </div>
        
        <div class="form-actions">
            <?php echo form_input($news_sub); ?>
            <a href="<?php echo site_url('backend_pages/allItem'); ?>" class="btn">Cancel </a>
        </div>
    </form> 